//
//  WBRefreshControl.h
//  王雷Sinoweibo
//
//  Created by wanglei on 16/11/30.
//  Copyright © 2016年 wanglei. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "UIlabel+extension.h"
#import "Masonry.h"

//必须声明在.h文件里.这样才可以声明属性
typedef NS_OPTIONS(NSUInteger, WBRefrshStatue) {
    Normal = 0 , //正常的初始状态
    Pulling = 1 << 0 , //准备刷新的状态
    Refreshing = 1 << 1//正在刷新的状态
};
@interface WBRefreshControl : UIControl
@property(nonatomic,assign)CGFloat RefreshHeight;
@property(nonatomic,strong)UIScrollView *scrollerview;
@property(nonatomic,strong)UILabel *tipLabel;
@property(nonatomic,strong)UIImageView *arrowIcon;
@property(nonatomic,strong)UIImageView *backImageView;
@property(nonatomic,strong)UIActivityIndicatorView *indicationView;
@property(nonatomic,assign)WBRefrshStatue status;
@property(nonatomic,assign)WBRefrshStatue lastStatus;
@property(nonatomic,assign)UIEdgeInsets inset;

- (void)endRefreshing;
@end
